import request from '@/utils/request'

// 生成分享链接
export function genShareUrl() {
  return request({
    url: '/ec/shareReg/genShareUrl',
    method: 'get',
  })
}

// 查询员工分享碳能量记录列表
export function listShareReg(query) {
  return request({
    url: '/ec/shareReg/list',
    method: 'get',
    params: query
  })
}

// 删除员工分享碳能量记录
export function delShareReg(id) {
  return request({
    url: '/ec/shareReg/' + id,
    method: 'delete'
  })
}
